<%--
  Created by IntelliJ IDEA.
  User: Baggio
  Date: 2017-11-22
  Time: 14:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>购买</title>
    <%@ include file="/common/include-core.jsp" %>
    <%@ include file="/common/include-wap.jsp" %>
    <link rel="stylesheet" type="text/css" href="/static/css/wap/pay/pay.css"/>
    <script src=" http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
</head>
<body>
<input type="hidden" value="${user.tid}" id="userId" name="userId">
<input type="hidden" value="${order.orderId}" id="orderId" name="orderId">
<input type="hidden" value="${order.orderPrice}" id="price" name="price">
<div class="header-box">
    <div class="orders-head">
        <a href="javascript:history.back(-1);"><img src="/static/images/wap/product/getorder.png" alt="" /></a>
        <b>确认订单</b>
    </div>
</div>

<div class="order-box">

    <div class="information-box">
        <div class="information">
            <div class="information-input">
                <input name="tid" value="${order.consigneeInfo.tid}" type="hidden">
                <span>收货人</span>：<input type="text" value="${order.consigneeInfo.consigneeName}"  class="input-one" onfocus="if(value=='姓名') {value=''}" onblur="if (value=='') {value='姓名'}"/>
                <span>电话</span>：<input type="text" value="${order.consigneeInfo.consigneePhone}" class="input-two" onfocus="if(value=='电话') {value=''}" onblur="if (value=='') {value='电话'}"/>
            </div>
            <div class="information-input">
            <span>收货地址</span>：
            </div>
            <textarea class="address" id="address" onfocus="if(value=='详细地址') {value=''}" onblur="if (value=='') {value='详细地址'}">${order.consigneeInfo.consigneeAddress}</textarea>
        </div>
    </div>


    <div class="product-box">
<c:forEach items="${order.orderItemList}" var="item" varStatus="index">
        <div class="product">
       <%--     <div class="photo">
                <img src="" alt="" />
            </div>--%>

            <div class="details">
                <div class="name">
                    <b class="bone">${item.productEntity.productEntityName}</b>
                  <%--  <b class="btwo"><span>x</span><span>1</span></b>--%>
                </div>

                <c:if test="${! empty item.productEntity.productEntityColour}">
                <div class="color">
                    <span>颜色：</span>
                    <span>金色</span>
                </div>
                </c:if>

<%--                <div class="package">
                    <span>套餐：</span>
                    <span>套餐一</span>
                </div>--%>

                <div class="money">
                    <p><fmt:formatNumber value="${item.price/100}" type="currency" /></p>
                </div>
            </div>
        </div>

</c:forEach>
    </div>

    <div class="payMode">
        <span>选择支付方式：</span>

<div>

</div>
    </div>
</div>

<div class="null"></div>



<div class="order-foot">
    <div class="total-amount">
        <span>总金额</span>
        <b><fmt:formatNumber value="${order.orderPrice/100}" type="currency"/></b>
    </div>

    <div class="btn-box">
        <a href="javascript:void(0)" class="btn">提交订单</a>
    </div>
</div>


</body>
</html>
<script type="text/javascript" src="/static/js/wap/pay/pay.js"></script>